home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
.net 2002 March
/
DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin
/
pc
/
PC Software
/
free_browsing
/
DavesQckSearchDbar3-14
/
dqsd.exe
/
searches
/
smlnk.xml
< prev
next >
Wrap
Text File
|
2002-09-10
|
2KB
|
66 lines
<search function="smlnk">
<name>smLNK</name>
<description>
smLNK is a link-shortening redirector where the URLs are as short as possible.<br/>
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr><td>[/url]</td><td> - </td><td>The url that is to be shortened</td></tr>
<tr><td>/key</td><td> - </td><td>Get the url that corresponds to the given key</td></tr>
</table>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>smlnk http://reallylongurltoannoyyou.com</td></tr>
<tr><td>smlnk /key ABCE1234</td></tr>
</table>
</description>
<category>Functions</category>
<link>http://smlnk.com/</link>
<contributor>Jonathon Marshall</contributor>
<form name="smlnkf"
action="http://smlnk.com/index.php"
method="post">
<input type="hidden" name="url000" />
<input type="hidden" name="hash000" />
</form>
<script><![CDATA[
function smlnk(q)
{
if( nullArgs("smlnk", q) )
return false;
document.smlnkf.hash000.value = "";
document.smlnkf.url000.value = "";
var args = parseArgs(q, "url, key");
if ( args.switches.length > 0 )
{
switch( args.switches[0].name )
{
case "key":
document.smlnkf.hash000.value = args.q;
break;
case "url":
default:
document.smlnkf.url000.value = args.q;
break;
}
}
else
{
document.smlnkf.url000.value = args.q;
}
submitForm(smlnkf);
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>